import { Routes, Route } from 'react-router-dom';
import { routes } from './route/route';

function App() {
    return (
        <div>
            <Routes>
                {routes.map(item => {
                    return <Route path={item.path} element={item.element} key={item.key}></Route>;
                })}
            </Routes>
        </div>
    );
}

export default App;
